var closejd = document.querySelector(".closejd");
closejd.onclick = function(){
    document.querySelector(".mcbox").remove();
}
var alert_box = function (color,title,text,button_text) {
    var echo =
        `
    <div class="alert-box-background">
        <div class="alert-box" style="border: 5px solid ${color}">
            <div class="alert-box-header">
                <ul>
                    <li></li>
                    <li></li>
                    <li></li>
                    </ul>
                    <h2 style="color: ${color}">${title}</h2>
                    <a></a>
                    </div>
                    <div class="ok" style="color:${color};font-size:16px;">${text}</div>
            <div class="ok-button" style="background-color: ${color}">${button_text}</div>
        </div>
    </div>
    `
    document.body.insertAdjacentHTML("afterbegin",echo);
    document.querySelector(".alert-box .ok-button").onclick = function () {
        this.onclick = null;
        this.parentNode.style.animation = "";
        this.parentNode.style.animation = "congdabianxiao .6s ease-in-out";
        setTimeout(function () {
            document.body.removeChild(document.querySelector(".alert-box-background"));
        }, 600);
    }
    document.querySelector(".alert-box a").onclick = function () {
        this.onclick = null;
        this.parentNode.parentNode.style.animation = "";
        this.parentNode.parentNode.style.animation = "congdabianxiao .6s ease-in-out";
        setTimeout(function () {
            document.body.removeChild(document.querySelector(".alert-box-background"));
        }, 600);
    }
}
document.querySelector(".mcbox").onclick = function(){
    alert("尚未开发,技术支持联系Q: 2748663580");
}